package day3.p1;

public class GreeterTest {
	public static void main(String[] args) {
		if (args.length > 0) {
			Greeter[] myGreeter = new Greeter[args.length];
			Advisor myAdvice = new Advisor();
			for (int i = 0; i < args.length; i++) {
				myGreeter[i] = new Greeter(args[i]);
				System.out.println(myGreeter[i].sayHello());
			}
			System.out.println(myAdvice.getAdvice());
			for (int i = args.length - 1; i >= 0; i--)
				System.out.println(myGreeter[i].sayGoodBye());
		}
	}
}
